<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>JS存储数据类型</title>
  </head>
  <body>
    <script>
      // 变量
      let name = "李华";
      let age = 18;

      // + 拼接
      console.log(name + age + "岁了");

      // 模板字符串
      console.log(`我是${name}，今年${age}岁了`);

      // 常量
      const PI = 3.14;
      console.log("圆周率是" + PI);

      // 对象
      const obj = {
        name: "张三",
        age: 20,
      };
      obj.name = "李四";
      console.log(obj);
    </script>
  </body>
</html>
